home *** CD-ROM | disk | FTP | other *** search
- property cursorPos, typeCount
- global gmObject, sndObject
-
- on beginSprite me
- typeCount = 0
- cursorPos = the mouseLoc
- sprite(3).member = member("v" & (the frameLabel).char[2], 1)
- end
-
- on exitFrame me
- if the mouseLoc <> cursorPos then
- cursorPos = the mouseLoc
- gmObject.traceCursor(cursorPos)
- end if
- typeCount = typeCount + 1
- if typeCount > 7 then
- if (gmObject.pippiType > 0) and (gmObject.pippiType < 5) then
- gmObject.pippiType = random(4)
- gmObject.setmember()
- end if
- typeCount = 0
- end if
- if (the ticks > (gmObject.timerX + 150)) and (the ticks < (gmObject.timerX + 200)) then
- if gmObject.fallen = 0 then
- sndObject.respondSnd(2, 1, 1, 1)
- gmObject.timerX = gmObject.timerX - 50
- end if
- end if
- if the ticks > (gmObject.timerX + 450) then
- gmObject.fallXPippi()
- end if
- go(the frame)
- end
-